import { BasicCommandSetting, new_basic_command_setting } from '@/models/commands/basic_command_setting.ts'

export enum AiService {
    AliYun = 'AliYun',
}

export declare type CommandAiConfig = {
    basic_command_setting: BasicCommandSetting
    service: AiService
    ali_yun_api_config: {
        model: string
        token: string
        enable_search: boolean
    }
    post_context: boolean
    post_context_cnt: number
}

export function new_command_ai_config(): CommandAiConfig {
    return {
        basic_command_setting: new_basic_command_setting(),
        service: AiService.AliYun,
        post_context: true,
        post_context_cnt: 10,
        ali_yun_api_config: {
            model: 'QWenMax',
            token: '',
            enable_search: true,
        },
    }
}
